<?
require_once 'config.inc.php'; 
if (empty($_SESSION["username"])){
	header("Location:./admin/login.php");
}
if ($_GET['id']) {
	$id = intval($_GET['id']);
	$sql = "SELECT * FROM {$tablepre}sites WHERE id=$id";
	$result=mysql_query($sql); 
	$sites = mysql_fetch_array($result);
};
?>

<link rel="stylesheet" type="text/css" href="images/style.css">
<div class="note"><div class="title">网址:<a href="<?php echo $sites['url'] ?>" target="_blank"><?php echo $sites['url'] ?></a> <a href="admin/admin_site.php?action=del&amp;id=<?php echo $sites[id] ?>" onclick="return confirm('Are you sure you want to delete?')">[删除]</a></div>
	<div class="content">
	<pre>
网站名称：<?php echo $sites['sitename'] ?><br />
网站信息：<?php echo html_entity_decode($sites['info']) ?>
	</pre>
	</div>
</div>
<a href="admin/admin_site.php?id=<?php echo $sites['id'] ?>" class="right">[编辑]</a>
<?
require_once 'foot.inc.php';
?>